<?php /* Smarty version 2.6.25, created on 2016-06-14 14:06:23
         compiled from book.add.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'book.add.tpl', 32, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript" src="../ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../ueditor/ueditor.all.min.js"></script>

<div class="comBox">
    <form name="myform" id="myform" actiom="" method="POST" enctype='multipart/form-data' >
        <div class="comHeader">
            <h2>添加书籍</h2>
        </div>
        <div class="comTable bt">
            <div class="info-block">
                <table class="siteInfo">
                    <tr>
                        <th width="100px">书籍名字</th>
                        <td>
                            <input type='input' name='book_name' id="book_name" class="text"/>
                            <span class="onShow">书籍名字不能为空!且不能加上  /\\:*?<>| 这些特殊符号！</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">作者名字</th>
                        <td>
                            <input type='input' name='author' id="author" class="text"/>
                            <span class="onShow">作者名字不能为空!</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍分类</th>
                        <td>
                            <select name="book_type" style="width: 120px;">
                                <option value="">请选择</option>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['type_arr'],'selected' => $this->_tpl_vars['type_arr_ted']), $this);?>

                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍标签</th>
                        <td>
                            <input type="checkbox" name = "" value ="" rel = "parent">全选<br/>
                            <?php $_from = $this->_tpl_vars['tag_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
                        <input type="checkbox" name='book_tag[]' rel ="child"  value="<?php echo $this->_tpl_vars['k']; ?>
" /> <?php echo $this->_tpl_vars['v']; ?>
&nbsp;
                            <?php endforeach; endif; unset($_from); ?>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍后缀</th>
                        <td>
                            <input type='input' name='book_suffix' id="book_suffix" class="text"/>
                            <span class="onShow">书籍后缀不能为空!文件名后缀</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">网络下载的地址</th>
                        <td>
                            <textarea  name='down_url' id="down_url" style="width: 300px;height:30px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">1是0否生成静态page页</th>
                        <td>
                            <select name="is_page">
                                <option value="">请选择</option>
                                <option value="0">没有</option>
                                <option value="1">已生成</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">是否已下载到本地</th>
                        <td>
                            <select name="is_down">
                                <option value="">请选择</option>
                                <option value="0">没有</option>
                                <option value="1">已下载</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">选择书籍文件</th>
                        <td>
                            <input name='file' type='file' />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type ="submit" class = "sub" value = "提交">
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
